//
//  PushPush.m
//  HYHoney
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PushPush.h"
#import "ModelForSearch.h"
@interface PushPush ()<UIWebViewDelegate>

@end

@implementation PushPush

- (void)dealloc
{
    [_webV release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
}



-(void)passSecondModel:(ModelForSearch *)model{
    
    CGRect frame = self.view.frame;
    
    self.webV = [[UIWebView alloc ]initWithFrame:CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame))];
    self.webV.backgroundColor = [UIColor whiteColor];
    self.webV.userInteractionEnabled =YES;
    self.webV.delegate = self;
    self.webV.opaque = NO;
    [self.view addSubview:self.webV];
    
    NSURL *url = [NSURL URLWithString:model.share_link];
    [self.webV loadRequest:[NSURLRequest requestWithURL:url]];

    [self.webV release];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
